package com.ebt.m.proposal_v2.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

import butterknife.ButterKnife;

/**
 * @author archer.qi
 *         Created on 2017/5/9.
 */
public abstract class BaseCompatActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(contentViewResource());
        ButterKnife.bind(this, this);
        onCreateView();
    }

    protected abstract int contentViewResource();

    protected abstract void onCreateView();

}
